using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFoundation;
using WebFoundation.Data;
using MHI.InspectionManager.Data; 
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Business
{
	/// <summary>
	/// DevJobteamsTList, table list:dev_jobteams_t 
	/// </summary>
	internal class DevJobteamsTList : BaseWritableEntities<DevJobteamsT>, IDevJobteamsTList
	{
		private DevJobteamsTQueryDAO _queryDAO;
		private DevJobteamsTWritingDAO _writeDAO;

		public DevJobteamsTList(DevJobteamsTQueryDAO queryDao, DevJobteamsTWritingDAO writtingDao) : base(queryDao, writtingDao)
		{
			this._queryDAO = queryDao;
			this._writeDAO = writtingDao;
		}

		/// <summary>
		/// 获取所有DevJobteamsT,table items:dev_jobteams_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevJobteamsT> GetDevJobteamsTAllItems()
		{
			return _queryDAO.GetDevJobteamsTAllItems().ToList();
		}

		/// <summary>
		/// 根据id，获取所有DevJobteamsT,table items:dev_jobteams_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevJobteamsT> GetDevJobteamsTItemsById(int id)
		{
			return _queryDAO.GetDevJobteamsTItemsById(id);
		}

		/// <summary>
		/// 增加一行DevJobteamsT,table item:dev_jobteams_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevJobteamsT(DevJobteamsT item)
		{
			return this._writeDAO.AddDevJobteamsT(item);
		}

		/// <summary>
		/// 增加多行DevJobteamsT,table items:dev_jobteams_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevJobteamsTs(DevJobteamsT[] items)
		{
			return this._writeDAO.AddDevJobteamsTs(items);
		}

		/// <summary>
		/// 更新一行DevJobteamsT,table item:dev_jobteams_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevJobteamsT(DevJobteamsT item)
		{
			return this._writeDAO.UpdateDevJobteamsT(item);
		}

		/// <summary>
		///  更新多行DevJobteamsT,table items:dev_jobteams_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevJobteamsTs(DevJobteamsT[] items)
		{
			return this._writeDAO.UpdateDevJobteamsTs(items);
		}

		/// <summary>
		/// 删除一行DevJobteamsT,table item:dev_jobteams_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevJobteamsT(DevJobteamsT item)
		{
			return this._writeDAO.DeleteDevJobteamsT(item);
		}

		/// <summary>
		///  删除多行DevJobteamsT,table items:dev_jobteams_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevJobteamsTs(DevJobteamsT[] items)
		{
			return this._writeDAO.DeleteDevJobteamsTs(items);
		}

		/// <summary>
		///  根据ids，删除多行DevJobteamsT,table entity:dev_jobteams_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevJobteamsTByIds(int[] ids)
		{
			return this._writeDAO.DeleteDevJobteamsTByIds(ids);
		}

	}
}
